package com.buybuyyi.stylistcrm.order.dao.impl;

import com.buybuyyi.stylistcrm.order.dao.InvoiceOrderGoodsDao;
import com.buybuyyi.stylistcrm.order.mapper.InvoiceOrderGoodsMapper;
import com.buybuyyi.stylistcrm.order.po.InvoiceOrderGoods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Created by cheny on 2016/9/4.
 */
@Repository
public class InvoiceOrderGoodsDaoImpl implements InvoiceOrderGoodsDao {

    @Autowired
    private InvoiceOrderGoodsMapper invoiceOrderGoodsMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return invoiceOrderGoodsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(InvoiceOrderGoods record) {
        return invoiceOrderGoodsMapper.insert(record);
    }

    @Override
    public int insertSelective(InvoiceOrderGoods record) {
        return invoiceOrderGoodsMapper.insertSelective(record);
    }

    @Override
    public InvoiceOrderGoods selectByPrimaryKey(Integer id) {
        return invoiceOrderGoodsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(InvoiceOrderGoods record) {
        return invoiceOrderGoodsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(InvoiceOrderGoods record) {
        return invoiceOrderGoodsMapper.updateByPrimaryKey(record);
    }
}
